package util.essential;

import util.essential.io.FileConfig;
import util.essential.io.Input;
import util.essential.io.Output;
import util.xmlmanager.XMLManager;

/*
 * Created on 22-02-2004
 * Modified on 12-02-2009: Version 2.0.
 */

/**
 * @author  Byte77
 * @version 2.1.
 */
public class SourceGetter {
	// Constants:

	// Attributes:
	private static SourceGetter instance = null;/*
												 * This is the only SourceGetter
												 * instance created by Singleton
												 * design pattern.
												 */

	public static XMLManager xmlManager = new XMLManager();
	public static Output out = Output.getInstance();
	public static Input in = Input.getInstance();
	public static FileConfig config = FileConfig.getInstance();

	// Constructor: With singleton pattern.
	private SourceGetter() {}
	/**
	 * With Singleton Pattern.
	 * @return  an instance of this class.
	 */
	public static SourceGetter getInstance() {
		if (instance == null) {
			instance = new SourceGetter();
			
		}
		return instance;
	}
}
